package com.gift.recommendation.modules.user.service;


import com.gift.recommendation.modules.user.dao.entity.CancelOrderEntity;
import com.gift.recommendation.modules.user.dao.mapper.CancelOrderMapper;
import com.gift.recommendation.modules.user.dto.CancelOrderReq;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import tk.mybatis.mapper.entity.Example;

import java.util.List;

/**
 * @author zzh <2658137258@qq.com>
 * @date 2023/5/15
 */
@Component
public class CancelOrderService {

    @Autowired
    private CancelOrderMapper cancelOrderMapper;

    public void updateByExampleSelective (CancelOrderEntity cancelOrderEntity, Example example) {
        cancelOrderMapper.updateByExampleSelective(cancelOrderEntity,example);
    }

    public void insertSelective (CancelOrderEntity cancelOrderEntity) {
        cancelOrderMapper.insertSelective(cancelOrderEntity);
    }

    public List<CancelOrderEntity> selectByExample (Example example) {
        return  cancelOrderMapper.selectByExample(example);
    }
}
